updating oE video_config
video_config
include graphcst.e namespace graphcst public function video_config()
returns a description of the current video configuration.
Returns:
A sequence, of 10 non-negative integers, laid out as follows:
- color monitor? -- 0 if monochrome, 1 otherwise
- current video mode
- number of text rows in console buffer
- number of text columns in console buffer
- screen width in pixels
- screen height in pixels
- number of colors
- number of display pages
- number of text rows for current screen size
- number of text columns for current screen size
Comments:
A public enum is available for convenient access to the returned configuration data:
- VC_COLOR
- VC_MODE
- VC_LINES
- VC_COLUMNS
- VC_XPIXELS
- VC_YPIXELS
- VC_NCOLORS
- VC_PAGES
- VC_SCRNLINES
- VC_SCRNCOLS
This routine makes it easy for you to parameterize a program so it will work in many different graphics modes.
Example 1:
vc = video_config() -- vc could be {1, 3, 300, 132, 0, 0, 32, 8, 37, 90}
See Also:
Not Categorized, Please Help
|